import { createRouter, createWebHistory } from "vue-router";
import modules from './modules';

const routes = [...modules];

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes,
    scrollBehavior(){
        return {
            el: '#app',
            top: 0,
            behavior: 'smooth',
        };
    },
});

export default router;
